﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

using Admin.NET.Core;
using Magicodes.ExporterAndImporter.Core;
using System.ComponentModel.DataAnnotations;

namespace Admin.NET.Application;

/// <summary>
/// 包装规格基础输入参数
/// </summary>
public class PackspecificationBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    public virtual string? PackCoding { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    public virtual string? PackName { get; set; }
    
    /// <summary>
    /// 混包类型
    /// </summary>
    [Dict("Package-specifications-for-mixed-package-types", AllowNullValue=true)]
    public virtual string? PackType { get; set; }
    
    /// <summary>
    /// 内箱长度
    /// </summary>
    public virtual int? InsideLength { get; set; }
    
    /// <summary>
    /// 内箱宽度
    /// </summary>
    public virtual int? InsideWidth { get; set; }
    
    /// <summary>
    /// 内箱高度
    /// </summary>
    public virtual int? InsideHeight { get; set; }
    
    /// <summary>
    /// 内箱重量
    /// </summary>
    public virtual string? InsideWeight { get; set; }
    
    /// <summary>
    /// 内箱容量
    /// </summary>
    public virtual int? InsideCapaCity { get; set; }
    
    /// <summary>
    /// 外箱长度
    /// </summary>
    public virtual int? OuterLength { get; set; }
    
    /// <summary>
    /// 外箱宽度
    /// </summary>
    public virtual int? OuterWidth { get; set; }
    
    /// <summary>
    /// 外箱高度
    /// </summary>
    public virtual int? OuterHeight { get; set; }
    
    /// <summary>
    /// 外箱重量
    /// </summary>
    public virtual string? OuterWeight { get; set; }
    
    /// <summary>
    /// 外箱容量
    /// </summary>
    public virtual int? OuterCapaCity { get; set; }
    
    /// <summary>
    /// 栈板长度
    /// </summary>
    public virtual int? PalletLength { get; set; }
    
    /// <summary>
    /// 栈板宽度
    /// </summary>
    public virtual int? PalletWidth { get; set; }
    
    /// <summary>
    /// 栈板高度
    /// </summary>
    public virtual int? PalletHeight { get; set; }
    
    /// <summary>
    /// 栈板重量
    /// </summary>
    public virtual string? PalletWeight { get; set; }
    
    /// <summary>
    /// 栈板容量
    /// </summary>
    public virtual int? PalletCapaCity { get; set; }
    
    /// <summary>
    /// 描述
    /// </summary>
    public virtual string? PackDescribe { get; set; }
    
}

/// <summary>
/// 包装规格分页查询输入参数
/// </summary>
public class PagePackspecificationInput : BasePageInput
{
    /// <summary>
    /// 编码
    /// </summary>
    public string? PackCoding { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    public string? PackName { get; set; }
    
    /// <summary>
    /// 混包类型
    /// </summary>
    [Dict("Package-specifications-for-mixed-package-types", AllowNullValue=true)]
    public string? PackType { get; set; }
    
    /// <summary>
    /// 内箱长度
    /// </summary>
    public int? InsideLength { get; set; }
    
    /// <summary>
    /// 内箱宽度
    /// </summary>
    public int? InsideWidth { get; set; }
    
    /// <summary>
    /// 内箱高度
    /// </summary>
    public int? InsideHeight { get; set; }
    
    /// <summary>
    /// 内箱重量
    /// </summary>
    public string? InsideWeight { get; set; }
    
    /// <summary>
    /// 内箱容量
    /// </summary>
    public int? InsideCapaCity { get; set; }
    
    /// <summary>
    /// 外箱长度
    /// </summary>
    public int? OuterLength { get; set; }
    
    /// <summary>
    /// 外箱宽度
    /// </summary>
    public int? OuterWidth { get; set; }
    
    /// <summary>
    /// 外箱高度
    /// </summary>
    public int? OuterHeight { get; set; }
    
    /// <summary>
    /// 外箱重量
    /// </summary>
    public string? OuterWeight { get; set; }
    
    /// <summary>
    /// 外箱容量
    /// </summary>
    public int? OuterCapaCity { get; set; }
    
    /// <summary>
    /// 栈板长度
    /// </summary>
    public int? PalletLength { get; set; }
    
    /// <summary>
    /// 栈板宽度
    /// </summary>
    public int? PalletWidth { get; set; }
    
    /// <summary>
    /// 栈板高度
    /// </summary>
    public int? PalletHeight { get; set; }
    
    /// <summary>
    /// 栈板重量
    /// </summary>
    public string? PalletWeight { get; set; }
    
    /// <summary>
    /// 栈板容量
    /// </summary>
    public int? PalletCapaCity { get; set; }
    
    /// <summary>
    /// 描述
    /// </summary>
    public string? PackDescribe { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 包装规格增加输入参数
/// </summary>
public class AddPackspecificationInput
{
    /// <summary>
    /// 编码
    /// </summary>
    [MaxLength(32, ErrorMessage = "编码字符长度不能超过32")]
    public string? PackCoding { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    [MaxLength(32, ErrorMessage = "名称字符长度不能超过32")]
    public string? PackName { get; set; }
    
    /// <summary>
    /// 混包类型
    /// </summary>
    [Dict("Package-specifications-for-mixed-package-types", AllowNullValue=true)]
    [MaxLength(32, ErrorMessage = "混包类型字符长度不能超过32")]
    public string? PackType { get; set; }
    
    /// <summary>
    /// 内箱长度
    /// </summary>
    public int? InsideLength { get; set; }
    
    /// <summary>
    /// 内箱宽度
    /// </summary>
    public int? InsideWidth { get; set; }
    
    /// <summary>
    /// 内箱高度
    /// </summary>
    public int? InsideHeight { get; set; }
    
    /// <summary>
    /// 内箱重量
    /// </summary>
    [MaxLength(32, ErrorMessage = "内箱重量字符长度不能超过32")]
    public string? InsideWeight { get; set; }
    
    /// <summary>
    /// 内箱容量
    /// </summary>
    public int? InsideCapaCity { get; set; }
    
    /// <summary>
    /// 外箱长度
    /// </summary>
    public int? OuterLength { get; set; }
    
    /// <summary>
    /// 外箱宽度
    /// </summary>
    public int? OuterWidth { get; set; }
    
    /// <summary>
    /// 外箱高度
    /// </summary>
    public int? OuterHeight { get; set; }
    
    /// <summary>
    /// 外箱重量
    /// </summary>
    [MaxLength(32, ErrorMessage = "外箱重量字符长度不能超过32")]
    public string? OuterWeight { get; set; }
    
    /// <summary>
    /// 外箱容量
    /// </summary>
    public int? OuterCapaCity { get; set; }
    
    /// <summary>
    /// 栈板长度
    /// </summary>
    public int? PalletLength { get; set; }
    
    /// <summary>
    /// 栈板宽度
    /// </summary>
    public int? PalletWidth { get; set; }
    
    /// <summary>
    /// 栈板高度
    /// </summary>
    public int? PalletHeight { get; set; }
    
    /// <summary>
    /// 栈板重量
    /// </summary>
    [MaxLength(32, ErrorMessage = "栈板重量字符长度不能超过32")]
    public string? PalletWeight { get; set; }
    
    /// <summary>
    /// 栈板容量
    /// </summary>
    public int? PalletCapaCity { get; set; }
    
    /// <summary>
    /// 描述
    /// </summary>
    [MaxLength(32, ErrorMessage = "描述字符长度不能超过32")]
    public string? PackDescribe { get; set; }
    
}

/// <summary>
/// 包装规格删除输入参数
/// </summary>
public class DeletePackspecificationInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 包装规格更新输入参数
/// </summary>
public class UpdatePackspecificationInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>    
    [MaxLength(32, ErrorMessage = "编码字符长度不能超过32")]
    public string? PackCoding { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>    
    [MaxLength(32, ErrorMessage = "名称字符长度不能超过32")]
    public string? PackName { get; set; }
    
    /// <summary>
    /// 混包类型
    /// </summary>    
    [Dict("Package-specifications-for-mixed-package-types", AllowNullValue=true)]
    [MaxLength(32, ErrorMessage = "混包类型字符长度不能超过32")]
    public string? PackType { get; set; }
    
    /// <summary>
    /// 内箱长度
    /// </summary>    
    public int? InsideLength { get; set; }
    
    /// <summary>
    /// 内箱宽度
    /// </summary>    
    public int? InsideWidth { get; set; }
    
    /// <summary>
    /// 内箱高度
    /// </summary>    
    public int? InsideHeight { get; set; }
    
    /// <summary>
    /// 内箱重量
    /// </summary>    
    [MaxLength(32, ErrorMessage = "内箱重量字符长度不能超过32")]
    public string? InsideWeight { get; set; }
    
    /// <summary>
    /// 内箱容量
    /// </summary>    
    public int? InsideCapaCity { get; set; }
    
    /// <summary>
    /// 外箱长度
    /// </summary>    
    public int? OuterLength { get; set; }
    
    /// <summary>
    /// 外箱宽度
    /// </summary>    
    public int? OuterWidth { get; set; }
    
    /// <summary>
    /// 外箱高度
    /// </summary>    
    public int? OuterHeight { get; set; }
    
    /// <summary>
    /// 外箱重量
    /// </summary>    
    [MaxLength(32, ErrorMessage = "外箱重量字符长度不能超过32")]
    public string? OuterWeight { get; set; }
    
    /// <summary>
    /// 外箱容量
    /// </summary>    
    public int? OuterCapaCity { get; set; }
    
    /// <summary>
    /// 栈板长度
    /// </summary>    
    public int? PalletLength { get; set; }
    
    /// <summary>
    /// 栈板宽度
    /// </summary>    
    public int? PalletWidth { get; set; }
    
    /// <summary>
    /// 栈板高度
    /// </summary>    
    public int? PalletHeight { get; set; }
    
    /// <summary>
    /// 栈板重量
    /// </summary>    
    [MaxLength(32, ErrorMessage = "栈板重量字符长度不能超过32")]
    public string? PalletWeight { get; set; }
    
    /// <summary>
    /// 栈板容量
    /// </summary>    
    public int? PalletCapaCity { get; set; }
    
    /// <summary>
    /// 描述
    /// </summary>    
    [MaxLength(32, ErrorMessage = "描述字符长度不能超过32")]
    public string? PackDescribe { get; set; }
    
}

/// <summary>
/// 包装规格主键查询输入参数
/// </summary>
public class QueryByIdPackspecificationInput : DeletePackspecificationInput
{
}

/// <summary>
/// 包装规格数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportPackspecificationInput : BaseImportInput
{
    /// <summary>
    /// 编码
    /// </summary>
    [ImporterHeader(Name = "编码")]
    [ExporterHeader("编码", Format = "", Width = 25, IsBold = true)]
    public string? PackCoding { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    [ImporterHeader(Name = "名称")]
    [ExporterHeader("名称", Format = "", Width = 25, IsBold = true)]
    public string? PackName { get; set; }
    
    /// <summary>
    /// 混包类型 关联值
    /// </summary>
    [ImporterHeader(IsIgnore = true)]
    [ExporterHeader(IsIgnore = true)]
    public string? PackType { get; set; }
    
    /// <summary>
    /// 混包类型 文本
    /// </summary>
    [Dict("Package-specifications-for-mixed-package-types")]
    [ImporterHeader(Name = "混包类型")]
    [ExporterHeader("混包类型", Format = "", Width = 25, IsBold = true)]
    public string PackTypeDictLabel { get; set; }
    
    /// <summary>
    /// 内箱长度
    /// </summary>
    [ImporterHeader(Name = "内箱长度")]
    [ExporterHeader("内箱长度", Format = "", Width = 25, IsBold = true)]
    public int? InsideLength { get; set; }
    
    /// <summary>
    /// 内箱宽度
    /// </summary>
    [ImporterHeader(Name = "内箱宽度")]
    [ExporterHeader("内箱宽度", Format = "", Width = 25, IsBold = true)]
    public int? InsideWidth { get; set; }
    
    /// <summary>
    /// 内箱高度
    /// </summary>
    [ImporterHeader(Name = "内箱高度")]
    [ExporterHeader("内箱高度", Format = "", Width = 25, IsBold = true)]
    public int? InsideHeight { get; set; }
    
    /// <summary>
    /// 内箱重量
    /// </summary>
    [ImporterHeader(Name = "内箱重量")]
    [ExporterHeader("内箱重量", Format = "", Width = 25, IsBold = true)]
    public string? InsideWeight { get; set; }
    
    /// <summary>
    /// 内箱容量
    /// </summary>
    [ImporterHeader(Name = "内箱容量")]
    [ExporterHeader("内箱容量", Format = "", Width = 25, IsBold = true)]
    public int? InsideCapaCity { get; set; }
    
    /// <summary>
    /// 外箱长度
    /// </summary>
    [ImporterHeader(Name = "外箱长度")]
    [ExporterHeader("外箱长度", Format = "", Width = 25, IsBold = true)]
    public int? OuterLength { get; set; }
    
    /// <summary>
    /// 外箱宽度
    /// </summary>
    [ImporterHeader(Name = "外箱宽度")]
    [ExporterHeader("外箱宽度", Format = "", Width = 25, IsBold = true)]
    public int? OuterWidth { get; set; }
    
    /// <summary>
    /// 外箱高度
    /// </summary>
    [ImporterHeader(Name = "外箱高度")]
    [ExporterHeader("外箱高度", Format = "", Width = 25, IsBold = true)]
    public int? OuterHeight { get; set; }
    
    /// <summary>
    /// 外箱重量
    /// </summary>
    [ImporterHeader(Name = "外箱重量")]
    [ExporterHeader("外箱重量", Format = "", Width = 25, IsBold = true)]
    public string? OuterWeight { get; set; }
    
    /// <summary>
    /// 外箱容量
    /// </summary>
    [ImporterHeader(Name = "外箱容量")]
    [ExporterHeader("外箱容量", Format = "", Width = 25, IsBold = true)]
    public int? OuterCapaCity { get; set; }
    
    /// <summary>
    /// 栈板长度
    /// </summary>
    [ImporterHeader(Name = "栈板长度")]
    [ExporterHeader("栈板长度", Format = "", Width = 25, IsBold = true)]
    public int? PalletLength { get; set; }
    
    /// <summary>
    /// 栈板宽度
    /// </summary>
    [ImporterHeader(Name = "栈板宽度")]
    [ExporterHeader("栈板宽度", Format = "", Width = 25, IsBold = true)]
    public int? PalletWidth { get; set; }
    
    /// <summary>
    /// 栈板高度
    /// </summary>
    [ImporterHeader(Name = "栈板高度")]
    [ExporterHeader("栈板高度", Format = "", Width = 25, IsBold = true)]
    public int? PalletHeight { get; set; }
    
    /// <summary>
    /// 栈板重量
    /// </summary>
    [ImporterHeader(Name = "栈板重量")]
    [ExporterHeader("栈板重量", Format = "", Width = 25, IsBold = true)]
    public string? PalletWeight { get; set; }
    
    /// <summary>
    /// 栈板容量
    /// </summary>
    [ImporterHeader(Name = "栈板容量")]
    [ExporterHeader("栈板容量", Format = "", Width = 25, IsBold = true)]
    public int? PalletCapaCity { get; set; }
    
    /// <summary>
    /// 描述
    /// </summary>
    [ImporterHeader(Name = "描述")]
    [ExporterHeader("描述", Format = "", Width = 25, IsBold = true)]
    public string? PackDescribe { get; set; }
    
}
